<!DOCTYPE html>
<html lang="en">
    <head>
        {include file="public/header" /}
        <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.1&ak="></script>
    </head>
    <body>
        {include file="public/nav" /}
        <div class="container index">
            
        </div>
        <script>
         
         Date.prototype.Format = function (date,fmt) {
             var o = {
                 "M+": this.getMonth() + 1, 
                 "d+": this.getDate(),  
                 "h+": this.getHours(),  
                 "m+": this.getMinutes(), 
                 "s+": this.getSeconds(), 
                 "q+": Math.floor((this.getMonth() + 3) / 3), 
                 "S": this.getMilliseconds() 
             };
             if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
             for (var k in o){
                 if (new RegExp("(" + k + ")").test(fmt)){
                     fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
                 }else{
                     return;
                 }
             }
             
             return fmt;
         }

         //使用例子；
         //1527061233 unix 时间格式；
         //yyyy-mm--dd 要格式化样式参数！
         var time1 = new Date(parseInt(1527061233)*1000).Format("yyyy-MM-dd");
        </script>
    </body>
</html>
